class Parent{
	int i = 10;
	String name = "hello";
	void m(){
		System.out.println("Parent");
	}
}

class Child extends Parent{

}
public class TestInher{
	public static void main(String[]args){
		Child c = new Child();
		System.out.println(c.i);
		System.out.println(c.name);
		c.m();
	}
}